/***        Default     ***/
form
{
    max-width: 30em;
    margin-left: 2em;
}

p
{
    margin-top: 1em;
    margin-bottom: 1em;
}

img
{
	border: 0;
        border-radius: 5px;
}
.img:hover
{
	background-color: transparent !important;
}

label 
{
      display: table;
    margin-bottom: 2px;
    margin-left: -10px;
    margin-top: 1em;
}

a
{
    color: blue;
    text-decoration: none;
}

a:visited
{
    color: blue;
}

a:hover
{
    text-decoration: underline; 
}

span
{
    font-weight:bold;
}

textarea 
{
    resize: none;
    width: 480px;
}

/***        Shared      ***/
html, body 
{
	height: 100%;
        background-color: rgb(92, 135, 178);
}

h2
{
	margin: 0;
	padding-top: 10px;
	padding-bottom: 10px;
}

#extraDiv
{
    display: table;
}

#container 
{
	min-height: 100%;
}

#sidebar, #content 
{
	overflow: hidden;
	padding-bottom: 4em;
}

body
{
	margin: 0;
	min-width: 1000px;
	min-height: 400px;
}

#sidebar
{
	float: left;
	width: 20%;
	min-width: 260px;
	padding: 0 2%;
        display: block;
        position: fixed;
        padding-right: 0;
}

#header
{
	width: 100%;
	height: 20%;
}

#info, #login
{
	width: 100%;
	height: 80%;
}


#content
{
	min-width: 660px;
	height: 100%;
        padding-right: 0;
        margin-left: 320px;
        margin-top: 35px;
}

ul
{
	margin: 0;
	margin-bottom: 10px;
}
#avatar > img
{
    width: 128px;
    margin-top: 5px;
}

#pages
{
    text-align: center;
    margin-top: 20px;
}

.submit
{
    margin-top: 1em;
    text-align: center;
}

/***        Button      ***/
.button
{
    background: #6EA0D2;
    border-radius: 10px 10px 10px 10px;
    display: inline;
    padding: 5px;
}

.button > a
{
    text-decoration: none;
}

.button > a:hover
{
    background-color: transparent;
    text-decoration: none;
}

.button:hover
{
    background: orange;
}

/*** Messages alert ****/
.message-info, .message-error
{
    background-color: silver;
    display: none;
    width: 100%;
}
.message-info > div, .message-error > div
{
    display: inline-block;
    vertical-align: middle;
}

.message-icon
{
    padding-right: 10px;
}

.message-icon > img
{
    vertical-align: middle;
    height: auto;
    width: auto;
}

.message-close
{
    float: right;
}

.message-close > img
{
    height: auto;
    width: auto;
}

#pageMainContent
{
        padding: 1em 2em 2em;
        margin-left: 45px;
}

#footer
{
	text-align: center;
	position: inherit;
	margin-top: -4em;
	height: 4em;
	clear: both;
        background-color: rgb(110, 160, 210);
}

img.validationimg
{
    width: auto;
    height: auto;
}

#copyright
{
	width: 100%;
}

.footer-element
{
	display:inline-block;
}

/***        Messages      ***/

#message-filter-mode li
{
	display: inline-block;
	margin-right: 1em;
}

.message-not-read
{
	font-weight:bold;
}

.message-subject
{
    width: 60%;
    text-align: left !important;
}

.message-text
{
    padding: 15px;
    min-height: 10em;
    background-color: rgb(110, 160, 210);
    border-radius: 10px;
    margin: 1em;
}

.message-username
{
    float: left;
    padding-right: 5px;
}

/***      Users      ***/

#user-filter-mode li
{
	display: inline-block;
	margin-right: 1em;
}

#user-list
{   
    width: 100%;
}

.user-image
{
    display: inline-block;
    padding-top: 10px;
    text-align: center;
    vertical-align: middle;
    width: 20%;
}

.user-state
{
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    width: 20%;
}

.user-info
{
    display: inline-block;
    vertical-align: middle;
    width: 55%;
}

.user-image>img
{
     width: 100px;
}

/*** Info ***/
.summary-element
{
	font-size: 0.8em;
	margin: 0.5em 0;
}

.summary-element div
{
	display: inline-block;
}

/*** Comments ***/
.spacer
{
    height: 10px;
}

#comments
{
    width: 100%;
}

.comment-text
{
    padding: 15px;
}

.comment-content
{
    background-color: rgb(110, 160, 210);
    border-radius: 10px;
    padding: 10px;
}

.comment-image, .comment-image > img
{
    width: 64px;
    height: 64px;
    vertical-align: top;
}

#new-comment-text
{
    width: 100%;
}

#new-comment-form
{
    max-width: 50%;
    margin-bottom: 2em;
}

/**** Rating ***/
.rate_widget
{
    height: 32px;
    overflow: visible;
    position: relative;
    width: 180px;
}
.ratings_stars {
    background: url("images/star_empty.png") no-repeat scroll 0 0 transparent;
    float: left;
    height: 28px;
    width: 30px;
}
.ratings_vote 
{
     background: url("images/star_full.png") no-repeat scroll 0 0 transparent;
}
.ratings_over 
{
    background: url('images/star_highlight.png') no-repeat;
}
.total_votes 
{
    background: #eaeaea;
    top: 58px;
    left: 0;
    padding: 5px;
    position:   absolute;  
}

/***        Challenges      ***/
td.done, td.not-done, td.header-done
{
    width: 2cm;
    text-align: center;
    border-left: 1px solid black;
}

td.done, td.not-done, .done, .not-done
{
    font-weight: bold;
}

td.done, .done
{
    color: #00FF00;
}

td.not-done, .not-done
{
    color: #FF0000;
}

td.header-done-by, td.done-by
{
    width: 2cm;
    text-align: center;
    border-left: 1px outset black;
}

.challenge-header > table, .challenge-group > table
{
    width: 100%;
    border: 1px outset black;
    background-color: white;
    border-spacing: 0;
}

.challenge-category-separator
{
    padding: 0;
    margin: 0;
    height: 10px;
    display: block;
}
.challenge-category{
    cursor: pointer;
}

.toggle-category
{
    display: inline;
}

#item-header
{
    font-weight: bold;
    width: 100%;
    background-color: white;
    border: 1px outset black;
    margin-bottom: 20px;
}


#item-header > div
{
    display: inline-block;
    padding-left: 1%;
    width: 20%;
    vertical-align: middle;
}
#item-title
{
    width: 55% !important;
}

#item-description
{
    margin-bottom: 20px;
}

#item-info
{
    text-align: right;
    padding-right: 5px;
    vertical-align: middle;
    padding-top: 3px;
    padding-bottom: 3px;
}

/*** Generic lists ***/
#list > table
{
    width: 100%;
    background-color: white;
    border: 1px outset black;
    border-collapse: collapse;
}

#tbody
{
    text-align: center;
}

#list > table > tbody > tr > td
{
    border-top: 1px solid black;
}

tr.list-item:hover
{
    background-color: #A9BCF5; 
    cursor: pointer;
}

/*** Menu ***/
#menu
{
	background-color: rgb(110, 160, 210);
	width: 100%;
        height: 2em;
        position: fixed;
        margin-left: 320px;
        border-radius: 0 10px 0 10px;
}

#menu li
{
	display: inline;
}

#menu > ul > li > a
{
    color: black;
    line-height: 2em;
    padding: 0.2em 0.6em;
    text-decoration: none;
}

#menu > ul > li > a:hover
{
    background-color: orange;
}

/*** Profile ***/
.statistic-label
{
    float: left;
    padding-right: 5px;
}

#profile-info
{
    display: inline-block;
    vertical-align: middle;
}

#profile-send
{
    margin-bottom: 10px;
    margin-top: 10px;
}

#profile-avatar
{
    display: inline-block;
    vertical-align: middle;
}

#profile-avatar > img
{
    width: 128px;
    margin-right: 1em;
}

.profile-description
{
    margin-top: 2em;
    margin-bottom: 2em;
}

#profile-statistics
{
    margin-top: 15px;
}

#profile-information
{
    margin-top: 2em;
}

.new-element
{
    width: 100%;
    padding: 1em 0;
    border-bottom: black 1px solid;
}

.new-element img
{    
    width: 64px;
}

.new-element > *
{
    display: inline-block;
    vertical-align: middle;
    width: 15%;
    text-align: center;
}

.new-text
{
    text-align: left;
    width: 50%;
}

#solution-filter-mode li
{
	display: inline-block;
	margin-right: 1em;
}

#list
{
    width: 100%;
    border: 1px solid black;
    background-color: white;
    border-collapse: collapse;
}

#list th
{
    border-bottom: 1px solid black;
}

#list td
{
    text-align: center;
}

.documentation-img{
    text-align: center;
}
.documentation-img > img{
    max-width: 100%;
}